/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 组件使用接口[SysComponentApiDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("组件使用接口DTO")
public class SysComponentApiDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "标识", position = 0)
    private String id;

    /**
     * 组件标识
     */
    @JsonProperty("component_id")
    @JSONField(name = "component_id")
    @ApiModelProperty(value = "组件标识", position = 1)
    private String componentId;

    /**
     * 接口方法标识
     */
    @JsonProperty("api_operation_id")
    @JSONField(name = "api_operation_id")
    @ApiModelProperty(value = "接口方法标识", position = 2)
    private String apiOperationId;

    /**
     * 显示名
     */
    @JsonProperty("display_name")
    @JSONField(name = "display_name")
    @ApiModelProperty(value = "显示名", position = 3)
    private String displayName;


    /**
     * 设置 [组件标识]
     */
    public SysComponentApiDTO setComponentId(String componentId) {
        this.componentId = componentId;
        this.modify("component_id", componentId);
        return this;
    }

    /**
     * 设置 [接口方法标识]
     */
    public SysComponentApiDTO setApiOperationId(String apiOperationId) {
        this.apiOperationId = apiOperationId;
        this.modify("api_operation_id", apiOperationId);
        return this;
    }

    /**
     * 设置 [显示名]
     */
    public SysComponentApiDTO setDisplayName(String displayName) {
        this.displayName = displayName;
        this.modify("display_name", displayName);
        return this;
    }


}
